class RespFmt {
    constructor(status, message, data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
    static success(data) {
        return new RespFmt(200, 'ok', data)
    }
    static faild(message) {
        return new RespFmt(message || 500, 'faild :' + message, null)
    }
}

module.exports = RespFmt